package com.qianfeng.openapi.zuul.config;

import com.qianfeng.openapi.zuul.utils.SysConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/5
 * @Time: 上午10:37
 */
@Configuration
//@SpringBootConfiguration
public class RabbitMQConfig {

    @Bean
    public Queue queue(){
        return new Queue(SysConstant.QUEUE_NAME);
    }

}
